import React from 'react';
import { Navigate, useRoutes } from 'react-router-dom';


import Home from '../views/home/home';

export const rootRouter = [
    {
      path: '/',
      element: <Navigate to="/Home" />,
    },
    {
      path: '/home',
      element: <Home />,
    },

  
    {
      path: '*',
      element: <Navigate to="/404" />,
    },
  ];


  const Router = () => {
    const routes = useRoutes(rootRouter);
    return routes;
  };
  
  export default Router;